<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>过渡属性</title>
    <style>
        .ceng {
            width: 100px;
            height: 100px;
            background-color: pink;
            /* 过渡时间 */
            transition-duration: 2s;
            /* 过渡属性 默认值 all 所有属性 */
            transition-property: all;
            /* 延迟 默认 0ms */
            transition-delay: 0.2s;
            /* 过渡方式 默认是 ease 其他值 ease-in ease-out ease-in-out step-start step-end cubic-bezier() */
            transition-timing-function: ease;
        }

        .ceng:hover {
            width: 300px;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="ceng"></div>
</body>
</html>